﻿using System.Text;

namespace msBsc.WebUi.Code
{
    public class QtHtmlGet
    {
        private static System.DateTime dtclear = System.DateTime.Now;
        private static msBsc.AppLogic.Cfg.SynDictionary _htmlcach = new AppLogic.Cfg.SynDictionary(true);
        public static msBsc.AppLogic.Cfg.SynDictionary htmlcach
        {
            get
            {
                if (dtclear.AddHours(2) < System.DateTime.Now)
                {
                    _htmlcach.Clear();
                    dtclear = dtclear.AddHours(2);
                }
                return _htmlcach;
            }
        }


        //        public string GetHeadMallNavHtml(string strNavNme)
        //        {
        //            StringBuilder sbRet = new StringBuilder();
        //            sbRet.Append(@"<div class=""head-mall-nav"" >");
        //            sbRet.Append(@"<div  style=""   background-color:#c9033b;  margin-top:2px; margin-bottom:0px; "">");
        //            sbRet.Append(@"<div style="" width:1190px; margin:auto;"">");
        //            sbRet.Append(@"<ul  class=""head-nav-ctn"" style="" "">");
        //            sbRet.Append(@"<li " + (strNavNme == "首页" ? @" class=""select-nav"" style=""width:148px;""" : @" style=""display:none;""") + @"><a  href=""javascript:void(0);"">商品服务分类 </a></li>");
        //            sbRet.Append(@"<li " + (strNavNme != "首页" ? @"" : @" style=""display:none;""") + @"><img src=""/themes/Style1/Image/llogo.png"" style=""position:absolute;background:none;left:0px;top:12px;width:auto;height:16px;""/><a href=""/"" style="" position:relative; margin-left:10px;"">首  页</a></li>");
        //            sbRet.Append(@"<li " + (strNavNme == "名品特卖" ? @" class=""select-nav""" : "") + @"><a  href=""/c_SpecialSelling.htm?ID=9"" style="" position:relative;"">名品特卖 </a><img src=""/themes/Style1/Image/hot.gif"" style=""position:absolute;background:none;right:0px;top:-5px;""></li>");
        //            sbRet.Append(@"<li " + (strNavNme == "活动抽奖" ? @" class=""select-nav""" : "") + @"><a class=""main-nav-icon"" href=""/c_UsrDrawing.htm"">活动抽奖 </a></li>");
        //            sbRet.Append(@"<li " + (strNavNme == "积分商城" ? @" class=""select-nav""" : "") + @"><a class=""nav-status-icon"" href=""/c_ScoreMall.htm"">积分商城 </a></li>");
        //            sbRet.Append(@"<li " + (strNavNme == "礼品卷" ? @" class=""select-nav""" : "") + @"><a href=""/c_GiftVolumeMall.htm"">礼品卷 </a></li>");
        //            sbRet.Append(@"<li " + (strNavNme == "电器商城" ? @" class=""select-nav""" : "") + @"><a href=""/c_ElectronicMall.htm"">电器商城 </a></li>");
        //            sbRet.Append(@"<li " + (strNavNme == "运河城" ? @" class=""select-nav""" : "") + @"><a href=""http://www.yhcmall.com/"">运河城 </a><img src=""/themes/Style1/Image/hot.gif"" style=""position:absolute;background:none;right:0px;top:-5px;""></li>");
        //            sbRet.Append(@"<li " + (strNavNme.Trim() == "超市" ? @" class=""select-nav""" : "") + @"><a href=""/c_SupermarketMall.htm"">超 市 </a></li>");
        //            sbRet.Append(@"<li " + (strNavNme == "尾品特卖" ? @" class=""select-nav""" : "") + @"><a href=""/c_TailGoodsMall.htm"">尾品特卖 </a></li>");
        //            sbRet.Append(@"<li style="" float:right;"" " + (strNavNme == "限时抢购" ? @" class=""select-nav""" : "") + @"><a href=""/c_FlashSaleMall.htm"">限时抢购 </a></li>");
        //            sbRet.Append(@"</ul>");
        //            sbRet.Append(@"</div>");
        //            sbRet.Append(@"</div> ");
        //            sbRet.Append(@"<div  style=""background: url(/themes/Style1/Image/shadow24.png) left top repeat-x;height:3px; ""></div>");
        //            sbRet.Append(@"</div> ");
        //            return sbRet.ToString();
        //        }


        //        //private msBsc.AppLogic.Cfg.UserInfo ouserinfo = new AppLogic.Cfg.UserInfo();

        //        //private msBsc.AppLogic.Cfg.SynDictionary dicHotLabel = new AppLogic.Cfg.SynDictionary(true);


        public static string GetHeaderLoginInfo1()
        {
            StringBuilder sbRet = new StringBuilder();
            if (msBsc.SvRef.UserInfo.Online)
            {
                sbRet.Append(@"<div class=""navbar"">
    <div class=""navbarContent"">
        <a class=""brand"" href=""/"">
            <img src=""/themes/wStyle1/Images/comm/log.png"" alt=""Djack"" />
        </a>
        <div class=""top-nav"">
            <ul class=""pull-right"">
                <!-- BEGIN SUPPORT -->

                <li class=""dropdown"">
                    <a href=""/"">首页
                    </a>
                </li>
                <li class=""dropdown"">
                    <a>|</a>
                </li>
                <li class=""dropdown"">
                    <a href=""/wp_ForumList.htm"">旅游推荐
                    </a>
                </li>
                <li class=""dropdown"">
                    <a>|</a>
                </li>
                <li class=""dropdown"">
                    <a href=""/wp_TravelIndex.htm?countryId=DF6723BE-A25C-4F77-BB49-A1662D3E6F2A&cityId=AEF39D8E-D298-4AF1-AEC5-2B00D237F5F5&destionId="""">资讯
                    </a>
                </li>");
                if (msBsc.SvRef.UserInfo.OperType == "2")
                {
                    sbRet.Append(@"<li class=""dropdown notdjack""><a>|</a></li>
                <li class=""dropdown aleadyLogged"" >
                    <a id=""loginInfo"" target=""_blank"" href=""/ws_DjackInfo.htm"">
                        <i class=""icon-user""></i><span id=""loginName"">" + msBsc.SvRef.UserInfo.OperatorName + @"</span>
                    </a>
                </li>
<li class=""dropdown notdjack""><a>|</a></li>
                <li class=""dropdown aleadyLogged"" >
                    <a id=""loginInfo"" target=""_blank"" href=""/ws_DjackInfo.htm"">
                        <span id=""loginName"">个人中心</span>
                    </a>
                </li>");
                }
                else if (msBsc.SvRef.UserInfo.OperType == "1")
                {
                    sbRet.Append(@"<li class=""dropdown"">
                    <a>|</a>
                </li>
                <li class=""dropdown notdjack"" ><a target=""_blank"" href=""/wb_ApplyDjack.htm"">成为地接客</a></li><li class=""dropdown notdjack""><a>|</a></li>
                <li class=""dropdown aleadyLogged"" >
                    <a id=""loginInfo"" target=""_blank"" href=""/wb_TouristInfo.htm"">
                        <i class=""icon-user""></i><span id=""loginName"">" + msBsc.SvRef.UserInfo.OperatorName + @"</span>
                    </a>
                </li>
<li class=""dropdown"">
                    <a>|</a>
                </li>
                <li class=""dropdown aleadyLogged"" >
                    <a id=""loginInfo"" target=""_blank"" href=""/wb_TouristInfo.htm"">
                        个人中心
                    </a>
                </li>");
                }

                //<li class=""dropdown notdjack""><a>|</a></li>
                //<li class=""dropdown aleadyLogged"" >
                //    <a id=""loginInfo"" target=""_blank"" href=""#"">
                //        <i class=""icon-user""></i><span id=""loginName"">"+msBsc.SvRef.UserInfo.OperatorName+ @"</span>
                //    </a>
                //</li>
                sbRet.Append(@"<li class=""dropdown aleadyLogged"">
                    <a>|</a>
                </li>
                <li class=""dropdown aleadyLogged"">
                    <a onclick=""$.setLoginOut();""><i class=""icon-signout""></i>退出 </a>
                </li>
            </ul>
        </div>
    </div>
</div>");
            }
            else
            {
                sbRet.Append(@"<div class=""navbar"">
    <div class=""navbarContent"">
        <a class=""brand"" href=""/"">
            <img src=""/themes/wStyle1/Images/comm/log.png"" alt=""Djack"" />
        </a>
        <div class=""top-nav"">
            <ul class=""pull-right"">
                <!-- BEGIN SUPPORT -->

                <li class=""dropdown"">
                    <a href=""/"">首页
                    </a>
                </li>
                <li class=""dropdown"">
                    <a>|</a>
                </li>
                <li class=""dropdown"">
                    <a href=""/wp_ForumList.htm"">旅游推荐
                    </a>
                </li>
                <li class=""dropdown"">
                    <a>|</a>
                </li>
                <li class=""dropdown"">
                    <a href=""/wp_TravelIndex.htm?countryId=DF6723BE-A25C-4F77-BB49-A1662D3E6F2A&cityId=AEF39D8E-D298-4AF1-AEC5-2B00D237F5F5&destionId="">资讯
                    </a>
                </li>
                <li class=""dropdown"">
                    <a>|</a>
                </li>
                <li class=""dropdown notLogged"">
                    <a href=""/wp_UserLogin.htm"">登录</a>
                </li>
                <li class=""dropdown notLogged"">
                    <a>|</a>
                </li>
                <li class=""dropdown notLogged"">
                    <a href=""/wp_UserRegister.htm"">注册</a>
                </li>
            </ul>
        </div>
    </div>
</div>");
            }
            return sbRet.ToString();
        }

        public static string GetHeaderLoginInfo2()
        {
            StringBuilder sbRet = new StringBuilder();
            sbRet.Append(@"<div class=""viewPC_head"">
        <div class=""vhpc_content"">
            <div class=""vhpc_cl"">
                <div class=""vhpc_cl_l"">您好，欢迎来到地接客！</div>
                <ul class=""vhpc_cl_r""><li><a href=""/""><em class=""index_ico""></em>首页</a></li>
                    <li>|</li>");
            if (msBsc.SvRef.UserInfo.Online)
            {
                if (msBsc.SvRef.UserInfo.OperType == "1")
                {
                    sbRet.Append(@"
<li><a href=""/wb_OrderList.htm""><em class=""travel_ico""></em>我的订单</a></li> <li>|</li>
<li><a href=""/wb_ApplyDjack.htm""><em class=""travel_ico""></em>成为地接客</a></li><li>|</li>
<li><a href=""/wb_TouristInfo.htm""><em class=""uinfo_ico""></em>" + msBsc.SvRef.UserInfo.OperatorName + @"</a></li>
                    <li>|</li>
                    <li><a onclick=""$.setLoginOut();""><em class=""LoginOu_ico""></em>退出</a></li>");
                }
                else if (msBsc.SvRef.UserInfo.OperType == "2")
                {
                    sbRet.Append(@"<li><a href=""/ws_OrderList.htm""><em class=""travel_ico""></em>我的订单</a></li> <li>|</li><li><a href=""/ws_DjackInfo.htm""><em class=""uinfo_ico""></em>" + msBsc.SvRef.UserInfo.OperatorName + @"</a></li>
                    <li>|</li>
                    <li><a onclick=""$.setLoginOut();""><em class=""LoginOu_ico""></em>退出</a></li>");
                }

            }
            else
            {
                sbRet.Append(@"<li><a class=""login"" href=""/wp_UserLogin.htm"">登录</a></li>
                    <li>|</li>
                    <li><a class=""login"" href=""/wp_UserRegister.htm"">注册</a></li>");
            }
            sbRet.Append(@" </ul>
            </div>
            <div class=""vhpc_c2"">
                <div class=""vhpc_login"">
                    <a href=""/"" class=""log""></a>
                </div>
                <div class=""vhpc_seach"">
                    <div class=""vhpc_seach_info"">
                        <div class=""seach_select"" id=""seachSelect""></div>
                        <div class=""seach_input"">
                            <input type=""text"" class=""txtSeach"" id=""txtSeach"" />
                            <div class=""txtPrompt"">
                                <span>请输入关键字</span>
                            </div>
                        </div>
                        <div class=""seach_btn"">
                            <input type=""button"" class=""btnSeach"" onclick=""search()"" value=""搜索"" />
                        </div>
                    </div>
                </div>
                <div class=""vhpc_menu"">
                    <div class=""chpc_menu_info"">
                        <a href=""/wp_VehicleList.htm"">包车旅游</a>
                    </div>
                    <div class=""chpc_menu_info"">
                        <a href=""/wp_TravelIndex.htm"">旅游资讯</a>
                    </div>
                    <div class=""chpc_menu_info"">
                        <a href=""/wp_ForumList.htm"">旅游推荐</a>
                    </div>
                </div>
            </div>
        </div>
    </div>");
            return sbRet.ToString();
        }

        public static string GetHeaderLoginInfo()
        {
            StringBuilder sbRet = new StringBuilder();
            sbRet.Append(@"<div class=""head""><div class=""h_content"">
            <div class=""hc_login"">
                <img src=""/themes/wStyle1/Images/comm/log.png"" />
            </div>
            <ul class=""hc_menu"">
                <li><a href=""/"">首页</a></li>
                <li><a>热门城市</a></li>
                <li><a href=""/wp_TraveFoodList.htm"">美食资讯</a></li>
                <li><a href=""/wp_VehicleList.htm"">包车资讯</a></li>
                <li><a href=""/wp_TraveSpecialtyList.htm"">购物资讯</a></li>
                <li><a href=""wp_TraveFoodList.htm"">司机资讯</a></li>
                <li class=""hcm_yd"">提交需求</li>
            </ul>
            <ul class=""hc_rmenu"">");
            if (msBsc.SvRef.UserInfo.Online)
            {
                if (msBsc.SvRef.UserInfo.OperType == "1")
                {
                    sbRet.Append(@"
<li><a class=""hcr_reg"">" + msBsc.SvRef.UserInfo.OperatorName + @"</a></li>
                    <li class=""hc_hr"">|</li>
                    <li><a class=""hcr_reg"" onclick=""$.setLoginOut();"">退出</a></li>");
                }
                else if (msBsc.SvRef.UserInfo.OperType == "2")
                {
                    sbRet.Append(@"
<li><a class=""hcr_reg"">" + msBsc.SvRef.UserInfo.OperatorName + @"</a></li>
                    <li class=""hc_hr"">|</li>
                    <li><a class=""hcr_reg"" onclick=""$.setLoginOut();"">退出</a></li>");
                }

            }
            else
            {
                sbRet.Append(@"<li><a class=""hcr_reg"" href=""/wp_UserLogin.htm"">登录</a></li>");
            }
            sbRet.Append(@"  </ul>
        </div>
    </div>");
            return sbRet.ToString();
        }

        public static string GetHeader(string title)
        {
            StringBuilder sbRet = new StringBuilder();
            sbRet.Append(@"<div class=""viewPC_head"">
        <div class=""vhpc_content"">
            <div class=""vhpc_cl"">
                <div class=""vhpc_cl_l"">您好，欢迎来到地接客！</div>
                <ul class=""vhpc_cl_r""><li><a href=""/""><em class=""index_ico""></em>首页</a></li>
                    <li>|</li>");
            if (msBsc.SvRef.UserInfo.Online)
            {
                if (msBsc.SvRef.UserInfo.OperType == "1")
                {
                    sbRet.Append(@"<li><a href=""/wb_OrderList.htm""><em class=""travel_ico""></em>我的订单</a></li>
                    <li>|</li><li><a href=""/wb_TouristInfo.htm""><em class=""uinfo_ico""></em>" + msBsc.SvRef.UserInfo.OperatorName + @"</a></li>
                    <li>|</li>
                    <li><a onclick=""$.setLoginOut();""><em class=""LoginOu_ico""></em>退出</a></li>");
                }
                else if (msBsc.SvRef.UserInfo.OperType == "2")
                {
                    sbRet.Append(@"<li><a href=""/ws_DjackInfo.htm""><em class=""uinfo_ico""></em>" + msBsc.SvRef.UserInfo.OperatorName + @"</a></li>
                    <li>|</li>
                    <li><a onclick=""$.setLoginOut();""><em class=""LoginOu_ico""></em>退出</a></li>");
                }

            }
            else
            {
                sbRet.Append(@"<li><a class=""login"" href=""/wp_UserLogin.htm"">登录</a></li>
                    <li>|</li>
                    <li><a class=""login"" href=""/wp_UserRegister.htm"">注册</a></li>");
            }
            sbRet.Append(@" </ul>
            </div>
            <div class=""vhpc_c2"">
                <div class=""vhpc_login"">
                    <a class=""log"" href=""/""></a>
                </div>
                <div class=""vhpc_seach n_title"">
                    <span class=""c_title"">" + title + @"</span>
                </div>
            </div>
        </div>
    </div>");
            return sbRet.ToString();
        }

        public string GetHeaderTopHtml()
        {
            return "交易成功！";
        }

        public string GetHeaderLogoHtml()
        {
            return "交易成功！";
        }


        //        public string GetHeaderTopHtml()
        //        {
        //            string strcartcount = "0";
        //            using (Epm.AppLogic.Framework.CDbAccess oacc = new Epm.AppLogic.Framework.CDbAccess())
        //            {
        //                System.Data.DataSet dscart = oacc.QueryBySQL("SELECT GOODS_COUNT=COUNT(*) FROM SHP_CUSTOMER_CART WHERE USER_NME='" + msBsc.SvRef.UserInfo.Operator + "'");
        //                if (dscart.Tables[0].Rows.Count > 0 && dscart.Tables[0].Rows[0]["GOODS_COUNT"].ToString()!=string.Empty)
        //                {
        //                    strcartcount = dscart.Tables[0].Rows[0]["GOODS_COUNT"].ToString();
        //                }
        //            }
        //            StringBuilder sbRet = new StringBuilder();
        //            sbRet.Append(@" <div id=""site-nav"">
        //    <div id=""sn-bg"">
        //        <div class=""sn-bg-right"">
        //        </div>/
        //    </div>
        //    <div id=""sn-bd"">
        //        <b class=""sn-edge""></b>
        //
        //        <div class=""sn-container"">
        //            <p class=""sn-back-home""><i class=""mui-global-iconfont""></i><a href=""/"">地接客首页</a></p>
        //            <H1 style=""width:130px;float:left;margin-top:4px;font-weight:normal;""><a href=""http://www.dijieke.com""><strong>地接客</strong></a><a href=""http://www.dijieke.com""><strong>地接客商城</strong></a></H1>
        //            <p id=""login-info"" class=""sn-login-info"">" + GetHeaderLoginInfo() + @"</p>
        //            <ul class=""sn-quick-menu"">
        //                <li class=""sn-mytaobao menu-item j_MyTaobao"">
        //                    <div class=""sn-menu"">
        //                        <a class=""menu-hd""
        //                           href=""/c_CustManager.htm""
        //                           target=""_top"" rel=""nofollow"">我的地接客<b></b></a>
        //
        //                        <div class=""menu-bd"">
        //                            <div class=""menu-bd-panel"" id=""myTaobaoPanel"">
        //                                <a href=""/c_CustBought.htm""
        //                                   target=""_top"" rel=""nofollow"">已买到的宝贝</a>
        //                                <a href=""/d_SoldOrderList.htm""
        //                                   target=""_top"" rel=""nofollow"">已卖出的宝贝</a>
        //                            </div>
        //                        </div>
        //                    </div>
        //                </li>
        //                <li class=""sn-seller-center " + (msBsc.SvRef.UserInfo.OperType == "1" ? "" : "hidden") + @" j_SellerCenter"">
        //                    <a target=""_top"" href=""/d_ShopManager.htm"">商家中心</a>
        //                </li>
        //                <li class=""sn-cart""><i class=""mui-global-iconfont"">&#xf0148;</i>
        //                    <a class=""sn-cart-link"" href=""/c_CustCart.htm"" target=""_top""
        //                       rel=""nofollow"">购物车<span class=""mc-count mc-pt3 cart-sum-txt"">" + strcartcount + @"</span>件
        //                    </a>
        //                </li>
        //	            <li class=""sn-separator""></li> 
        //                <li class=""sn-favorite menu-item"">
        //                <div class=""sn-menu"">
        //                    <a class=""menu-hd""
        //                        href=""javascript:void(0);"" target=""_self"" rel=""nofollow"">收藏夹<b></b></a>
        //
        //                    <div class=""menu-bd"">
        //                        <div class=""menu-bd-panel"">
        //                            <a href=""/c_ShopCollect.htm"" target=""_top""
        //                                rel=""nofollow"">收藏的店铺</a>
        //                            </div>
        //                        </div>
        //                    </div>
        //                </li>
        //	            </ul>
        //	        </div>
        //	    </div>
        //	</div>  ");


        //                //<li class=""sn-sitemap"">
        //                //    <div class=""sn-menu"">
        //                //        <h3 class=""menu-hd""><i class=""mui-global-iconfont"">&#xe601;</i><span>网站导航</span><b></b></h3>
        //                //        <div class=""menu-bd sn-sitemap-lazy sn-sitemap-bd"" data-spm=""a2228l4"">
        //                //        </div>
        //                //    </div>
        //                //</li>

        //                //<li class=""sn-favorite menu-item"">
        //                //<div class=""sn-menu"">
        //                //    <a class=""menu-hd""
        //                //        href=""/c_Collect_list.htm""
        //                //        target=""_top"" rel=""nofollow"">收藏夹<b></b></a>

        //                //    <div class=""menu-bd"">
        //                //        <div class=""menu-bd-panel"">
        //                //            <a href=""/c_Item_collect.htm"" target=""_top""
        //                //                rel=""nofollow"">收藏的宝贝</a>
        //                //            <a href=""/c_Shop_collect_list.htm"" target=""_top""
        //                //                rel=""nofollow"">收藏的店铺</a>
        //                //            </div>
        //                //        </div>
        //                //    </div>
        //                //</li>
        //            return sbRet.ToString();
        //        }

        //        public string GetHeaderLogoDealerHtml(string strpTitleNme = "")
        //        {
        //            string strDealername = "店铺名称";
        //            if (msBsc.SvRef.UserInfo.Online)
        //            {
        //                using (Epm.AppLogic.Framework.CDbAccess oCDbAccess = new Epm.AppLogic.Framework.CDbAccess())
        //                {
        //                    System.Data.DataSet dst = oCDbAccess.QueryBySQL("SELECT A.COMM_TENANT_ID,A.COMM_TENANT_NME,A.COMM_TYPE_CID,A.COMM_TENANT_SID FROM SHP_COMMERCIAL_TENANT_INFO A WHERE A.USER_NME='" + msBsc.SvRef.UserInfo.Operator + "'");
        //                    if (dst.Tables[0].Rows.Count > 0)
        //                    {
        //                        strDealername = dst.Tables[0].Rows[0]["COMM_TENANT_NME"].ToString();
        //                        if (dst.Tables[0].Rows[0]["COMM_TYPE_CID"].ToString() == "2")
        //                        {
        //                            strDealername = strDealername + "-企业";
        //                        }
        //                        else
        //                        {
        //                            strDealername = strDealername + "-个人";
        //                        }
        //                        if (dst.Tables[0].Rows[0]["COMM_TENANT_SID"].ToString() == "0")
        //                        {
        //                            strDealername = strDealername + "(还未上传证件)";
        //                        }
        //                        else if (dst.Tables[0].Rows[0]["COMM_TENANT_SID"].ToString() == "1")
        //                        {
        //                            strDealername = strDealername + "(证件审核中)";
        //                        }
        //                        else if (dst.Tables[0].Rows[0]["COMM_TENANT_SID"].ToString() == "3")
        //                        {
        //                            strDealername = strDealername + "(证件审核未通过)";
        //                        }
        //                        else if (dst.Tables[0].Rows[0]["COMM_TENANT_SID"].ToString() == "4")
        //                        {
        //                            strDealername = strDealername + "(店铺已关闭)";
        //                        }
        //                    }
        //                }
        //            }

        //            return GetHeaderLogoHtml(strDealername);
        ////            StringBuilder sbRet = new StringBuilder();
        ////            sbRet.Append(@"        <div id=""header"">
        ////            <div class=""headerLayout"">
        ////                <!-- global logo -->
        ////                <div class=""headerCon "">
        ////                    <h1 id=""mallLogo"" class=""mall-logo"" class=""clearfix"">
        ////                        <span class=""mlogo"">
        ////                            <div id=""J_FpLogo"">
        ////                                <a class=""fp-logo fp-iconfont"" href=""/"" title=""地接客商城"" >
        ////                                <img src=""/themes/Style1/Image/juyou_head.png""  />" + strpTitleNme + @"
        ////                                </a>
        ////                            </div>
        ////                        </span>
        ////                    </h1>
        ////                    <div class=""header-extra"">
        ////                        <span class=""dealer-name"">" + strDealername + @"</span>
        ////                    </div>
        ////                </div>
        ////            </div>
        ////        </div>
        ////");
        ////            return sbRet.ToString();
        //        }

        //        public string GetHeaderLogoHtml(string strpTitleNme = "")
        //        {
        //            StringBuilder sbRet = new StringBuilder();
        //            sbRet.Append(@"
        //        <div id=""header"" class="""">
        //            <!-- global logo -->
        //            <div id=""headerCon"">
        //                <h1 id=""mallLogo"" style=""width: 175px;"">
        //                    <span class=""mlogo"" style=""width: 174px; height: 63px; display: block; padding-top: 18px;"">
        //                        <a href=""/"" target=""_blank"" title=""地接客商城"" style=""width: 174px; height: 63px;""><s style=""width: 174px!important;
        //                            height: 63px!important; background: url(/themes/Style1/Image/logo.jpg) no-repeat 0 0!important"">
        //                        </s></a> </span>
        //                </h1>
        //                <div id=""shopExtra"">
        //                    <div class=""slogo"">
        //                        <a class=""slogo-shopname"" href=""javascript:void(0);" + @"""><strong>" + strpTitleNme + @"</strong></a>
        //                        <div class=""slogo-extraicon "" style=""display: none"">
        //                        </div>
        //                    </div>
        //                    <div id=""shop-info"" class="""">
        //                        <div style=""display: none"">
        //                            <input type=""hidden"" id=""dsr-userid"" value="""" />
        //                        </div>
        //                        <div class=""main-info"" style=""display: none;"">
        //                            <div class=""shopdsr-item"">
        //                                <div class=""shopdsr-title"">
        //                                    描 述</div>
        //                                <div class=""shopdsr-score shopdsr-score-up-ctrl"">
        //                                    <span class=""shopdsr-score-con"">4.9</span> <s class=""shopdsr-score-up""></s>
        //                                </div>
        //                            </div>
        //                            <div class=""shopdsr-item"">
        //                                <div class=""shopdsr-title"">
        //                                    服 务</div>
        //                                <div class=""shopdsr-score shopdsr-score-up-ctrl"">
        //                                    <span class=""shopdsr-score-con"">4.8</span> <s class=""shopdsr-score-up""></s>
        //                                </div>
        //                            </div>
        //                            <div class=""shopdsr-item"">
        //                                <div class=""shopdsr-title"">
        //                                    物 流</div>
        //                                <div class=""shopdsr-score shopdsr-score-up-ctrl"">
        //                                    <span class=""shopdsr-score-con"">4.8</span> <s class=""shopdsr-score-up""></s>
        //                                </div>
        //                            </div>
        //                            <a class=""slogo-triangle""><i class=""icon-triangle""></i></a>
        //                        </div>
        //                    </div>
        //                </div> 
        //                <div class=""header-extra"">
        //                    <div id=""mallSearch"" class=""mall-search"">
        //                        <form name=""searchTop"" action=""/c_GoodsSearch.htm"" class=""mallSearch-form"" >
        //                        <fieldset>
        //                            <legend>地接客搜索</legend>
        //                            <div class=""mallSearch-input clearfix"">
        //                                <div class=""defaultSearch"">
        //                                    <div id=""s-combobox-2594"" class=""s-combobox"">
        //                                        <div class=""s-combobox-input-wrap"">
        //                                            <input type=""text"" name=""f"" accesskey=""s"" 
        //                                                value="""" id=""mq"" class=""s-combobox-input"" 
        //                                                title=""请输入搜索文字"" aria-label=""请输入搜索文字""></div></div>
        //                                    <button id=""J_SearchBtn"" type=""submit"">
        //                                        搜地接客<s></s></button>
        //                                </div>
        //                            </div>
        //                        </fieldset></form>
        //                        
        //            <ul class=""tmTagSuggest""></ul><script type=""text/javascript"">loadTagSuggest(); </script>
        //                    </div>
        //                </div>
        //            </div>
        //        </div>");

        ////            sbRet.Append(@"        <div id=""header"">
        ////            <div class=""headerLayout"">
        ////                <!-- global logo -->
        ////                <div class=""headerCon "">
        ////                    <h1 id=""mallLogo"" class=""mall-logo"" class=""clearfix"">
        ////                        <span class=""mlogo"">
        ////                            <div id=""J_FpLogo"">
        ////                                <a class=""fp-logo fp-iconfont"" href=""/"" title=""地接客商城"" >
        ////                                <img src=""/themes/Style1/Image/logo.png""  />" + strpTitleNme + @"
        ////                                </a>
        ////                            </div>
        ////                        </span>
        ////                    </h1>
        ////                    <div class=""header-extra"">
        ////<div class=""header-banner"">
        ////<div id=""J_FpEventBanner"" class=""fp-event-banner"" data-spm=""20000004"" data-spm-max-idx=""1"" style=""display: block;"">
        ////<a href=""/"" data-spm=""d2"" data-spm-anchor-id=""3.7396704.20000004.d2"">
        ////<img class=""j_EventBannerPic event-banner-pic"" src=""/themes/Style1/Image/TB10J3RGpXXXXbFXpXXD1MBIXXX-190-80.png"" width=""190"" height=""80"" alt=""女神的新衣"">
        ////</a>
        ////</div>
        ////</div>
        ////<div id=""mallSearch"" class=""mall-search"">
        ////<form class=""mallSearch-form"" name=""searchTop"" action=""/c_GoodsSearch.htm"" target=""_top"">
        ////<fieldset>
        ////<legend>地接客搜索</legend>
        ////<div class=""mallSearch-input clearfix"">
        ////<label for=""mq"" style=""visibility: visible; display: none;"">搜索 地接客 商品/品牌/店铺</label>
        ////<div class=""s-combobox"" id=""s-combobox-130"">
        ////<div class=""s-combobox-input-wrap"">
        ////<input type=""text"" name=""f"" id=""mq"" tabindex=""9"" accesskey=""s"" title=""请输入搜索文字"" aria-label=""请输入搜索文字"">
        ////</div></div>
        ////<button type=""submit"">搜索</button> 
        ////</div>
        ////</fieldset>
        ////</form>
        ////<ul data-spm=""a1z5h"" class=""hot-query""><li class=""hot-query-highlight""><a href=""/""></a></li><li><a href=""/""></a></li></ul></div>
        ////</div>
        ////                </div>
        ////            </div>
        ////        </div>
        ////");
        //            return sbRet.ToString();
        //        }

        //        /// <summary>
        //        /// 购物页面header
        //        /// </summary>
        //        /// <returns></returns>
        //        public string GetHeaderShopLogoHtml()
        //        {
        //            StringBuilder sbRet = new StringBuilder();
        //            sbRet.Append(@" 
        //        <div id=""header"" class="""">
        //            <!-- global logo -->
        //            <div id=""headerCon"">
        //                <h1 id=""mallLogo"" style=""width: 175px;"">
        //                    <span class=""mlogo"" style=""width: 154px; height: 43px; display: block; padding-top: 18px;"">
        //                        <a href=""/"" target=""_blank"" title=""地接客商城"" style=""width: 154px; height: 43px;""><s style=""width: 154px!important;
        //                            height: 43px!important; background: url(/themes/Style1/Image/logo.png) no-repeat 0 0!important"">
        //                        </s>KOKOTmall.com</a> </span>
        //                </h1>
        //                <div id=""shopExtra"">
        //                    <div class=""slogo"">
        //                        <a class=""slogo-shopname"" href=""/c_ShopView.htm?ID="  + @"""><strong>"  + @"</strong></a>
        //                        <div class=""slogo-extraicon "">
        //                        </div>
        //                    </div>
        //                    <div id=""shop-info"" class="""">
        //                        <div style=""display: none"">
        //                            <input type=""hidden"" id=""dsr-userid"" value="""" />
        //                        </div>
        //                        <div class=""main-info"" style=""display: none;"">
        //                            <div class=""shopdsr-item"">
        //                                <div class=""shopdsr-title"">
        //                                    描 述</div>
        //                                <div class=""shopdsr-score shopdsr-score-up-ctrl"">
        //                                    <span class=""shopdsr-score-con"">4.9</span> <s class=""shopdsr-score-up""></s>
        //                                </div>
        //                            </div>
        //                            <div class=""shopdsr-item"">
        //                                <div class=""shopdsr-title"">
        //                                    服 务</div>
        //                                <div class=""shopdsr-score shopdsr-score-up-ctrl"">
        //                                    <span class=""shopdsr-score-con"">4.8</span> <s class=""shopdsr-score-up""></s>
        //                                </div>
        //                            </div>
        //                            <div class=""shopdsr-item"">
        //                                <div class=""shopdsr-title"">
        //                                    物 流</div>
        //                                <div class=""shopdsr-score shopdsr-score-up-ctrl"">
        //                                    <span class=""shopdsr-score-con"">4.8</span> <s class=""shopdsr-score-up""></s>
        //                                </div>
        //                            </div>
        //                            <a class=""slogo-triangle""><i class=""icon-triangle""></i></a>
        //                        </div>
        //                        <div class=""extra-info ks-popup-hidden ks-overlay-hidden"" id=""ks-component2728"" style=""width: 265px;
        //                            z-index: 100000; left: -114px; top: 51px;"">
        //                            <div class=""ks-popup-content"">
        //                                <div class=""bd"">
        //                                    <div data-spm=""d4918101"" class=""shop-rate"">
        //                                        <h4>
        //                                            店铺动态评分<span class=""compare"">与同行业相比</span></h4>
        //                                        <ul class=""render-byjs"">
        //                                            <li>描述相符：<a target=""_blank"" href=""/""><em
        //                                                class=""count"" title=""4.92572"">4.9</em><span class=""rateinfo"" title=""计算规则:(店铺得分-同行业平均分)/(同行业店铺最高得分-同行业平均分)""><b></b><i>高于</i><em>51.63%</em></span></a></li><li>
        //                                                    服务态度：<a target=""_blank"" href=""/""><em
        //                                                        class=""count"" title=""4.89687"">4.8</em><span class=""rateinfo"" title=""计算规则:(店铺得分-同行业平均分)/(同行业店铺最高得分-同行业平均分)""><b></b><i>高于</i><em>46.24%</em></span></a></li><li>
        //                                                            发货速度：<a target=""_blank"" href=""/""><em
        //                                                                class=""count"" title=""4.89685"">4.8</em><span class=""rateinfo"" title=""计算规则:(店铺得分-同行业平均分)/(同行业店铺最高得分-同行业平均分)""><b></b><i>高于</i><em>47.74%</em></span></a></li></ul>
        //                                    </div>
        //                                    <div class=""extend"">
        //                                        <h4 class=""title"">
        //                                            店铺服务</h4>
        //                                        <ul>
        //                                            <li class=""shopkeeper"">
        //                                                <label>
        //                                                    掌 柜：</label>
        //                                                <div class=""right"">
        //                                                    <a href=""/"" data-spm=""d4918097"">剑沙数码专营店</a>
        //                                                </div>
        //                                            </li>
        //                                            <li>
        //                                                <label>
        //                                                    客 服：</label>
        //                                                <div class=""right"">
        //                                                    <span class=""ww-light ww-large"" data-nick=""%E5%89%91%E6%B2%99%E6%95%B0%E7%A0%81%E4%B8%93%E8%90%A5%E5%BA%97""
        //                                                        data-tnick=""%E5%89%91%E6%B2%99%E6%95%B0%E7%A0%81%E4%B8%93%E8%90%A5%E5%BA%97""
        //                                                        data-encode=""true"" data-display=""inline""><a href=""/""
        //                                                            target=""_blank"" class=""ww-inline ww-online"" title=""点此可以直接和卖家交流选好的宝贝，或相互交流网购体验，还支持语音视频噢。"">
        //                                                            <span>旺旺在线</span></a></span>
        //                                                </div>
        //                                            </li>
        //                                            <li>
        //                                                <label>
        //                                                    公 司 名：
        //                                                </label>
        //                                                <div class=""right"">
        //                                                    上海剑沙电子科技有限公司
        //                                                </div>
        //                                            </li>
        //                                            <li class=""locus"">
        //                                                <label>
        //                                                    所 在 地：
        //                                                </label>
        //                                                <div class=""right"">
        //                                                    上海
        //                                                </div>
        //                                            </li>
        //                                            <li>
        //                                                <label>
        //                                                    工商执照：</label>
        //                                                <div class=""right"">
        //                                                    <a href=""/c_ErrInfo.htm""
        //                                                        class=""tm-gsLink"" target=""_blank"">
        //                                                        <img width=""20"" height=""22"" src=""data:image/png;base64,""
        //                                                            alt=""""></a>
        //                                                </div>
        //                                            </li>
        //                                        </ul>
        //                                    </div>
        //                                    <div class=""other"">
        //                                        <a class=""enter-shop"" href=""/"" data-spm=""d4918105""><i></i><span>
        //                                            进入店铺</span></a> <a id=""xshop_collection_href"" href=""/""
        //                                                mercury:params=""id=68346479&amp;itemid=68346479&amp;itemtype=0&amp;ownerid=334228341667af062cafd9236f92ff17""
        //                                                class=""J_PopupTrigger collection xshop_sc J_TDialogTrigger J_TokenSign"" data-width=""440""
        //                                                data-height=""260"" data-closebtn=""true""><i></i><span>收藏本店</span> </a>
        //                                    </div>
        //                                </div>
        //                            </div>
        //                        </div>
        //                    </div>
        //                </div> 
        //                <div class=""header-extra"">
        //                    <div id=""mallSearch"" class=""mall-search"">
        //                        <form name=""searchTop"" action=""/c_GoodsSearch.htm"" class=""mallSearch-form"" >
        //                        <fieldset>
        //                            <legend>地接客搜索</legend>
        //                            <div class=""mallSearch-input clearfix"">
        //                                <div class=""defaultSearch"">
        //                                    <div id=""s-combobox-2594"" class=""s-combobox"">
        //                                        <div class=""s-combobox-input-wrap"">
        //                                            <input type=""text"" name=""f"" accesskey=""s"" 
        //                                                value="""" id=""mq"" class=""s-combobox-input"" 
        //                                                title=""请输入搜索文字"" aria-label=""请输入搜索文字""></div></div>
        //                                    <button id=""J_SearchBtn"" type=""submit"">
        //                                        搜地接客<s></s></button>
        //                                </div>
        //                                <button id=""J_CurrShopBtn"" class=""currShopBtn"" type=""button"" style=""display:none;"">
        //                                    搜本店<s></s></button>
        //                                <input id=""J_Type"" type=""hidden"" name=""type"" value=""p"">
        //                                <input id=""J_MallSearchStyle"" type=""hidden"" name=""style"" value="""">
        //                                <input id=""J_Cat"" type=""hidden"" name=""cat"" value=""all"">
        //                            </div>
        //                        </fieldset>
        //                        <input type=""hidden"" name=""from"" value=""qRecommend_1_qRecommend""></form>
        //                        <ul class=""tmTagSuggest"">
        //                            <li data-pos=""0"" data-cat=""50024407""><a title=""电池5号"">电池5号</a></li><li data-pos=""1""
        //                                data-cat=""50024407""><a title=""电池"">电池</a></li><li data-pos=""2"" data-cat=""2""><a title=""南孚电池5号"">
        //                                    南孚电池5号</a></li><li data-pos=""3"" data-cat=""2""><a title=""南孚电池"">南孚电池</a></li><li data-pos=""4""
        //                                        data-cat=""2""><a title=""南孚"">南孚</a></li><li data-pos=""5"" data-cat=""50099377""><a title=""电池5号南孚"">
        //                                            电池5号南孚</a></li><li data-pos=""6"" data-cat=""50099377""><a title=""南孚5号"">南孚5号</a></li><li
        //                                                data-pos=""7"" data-cat=""50099377""><a title=""碱性电池5号"">碱性电池5号</a></li><li data-pos=""8""
        //                                                    data-cat=""2""><a title=""电池5"">电池5</a></li><li data-pos=""9"" data-cat=""50099377""><a title=""碱性电池"">
        //                                                        碱性电池</a></li></ul>
        //                    </div>
        //                </div>
        //            </div>
        //            <input id=""J_ShopSearchUrl"" type=""hidden"" value=""/"">
        //        </div>
        //");
        //            return sbRet.ToString();
        //        }

        public static string GetFloorHtml1()
        {
            StringBuilder sbRet = new StringBuilder();
            sbRet.Append(@"<div class=""buttom"">
    <div class=""declare""><a target=""_blank"" href=""/wp_AboutUs.htm"">关于我们</a><a target=""_blank"" href=""/wp_ContactUs.htm"">联系我们</a><a target=""_blank"" href=""/wp_UsingHelp.htm"">使用帮助</a><a target=""_blank"" href=""/wp_CopyrightNotice.htm"">版权声明</a><a target=""_blank"" href=""/wp_TermsOfService.htm"">服务条款</a></div>
    <div class="""" style=""margin-bottom: 16px;"">Copyright 2014 www.dijieke.com All Rights Reserved 地接客版权所有声明</div>
    <div class=""count"">
        渝ICP备14009985号-1 
        <script type=""text/javascript"">
            var cnzz_protocol = ((""https:"" == document.location.protocol) ? "" https://"" : "" http://""); document.write(unescape(""%3Cspan id='cnzz_stat_icon_1253969348'%3E%3C/span%3E%3Cscript src='"" + cnzz_protocol + ""s4.cnzz.com/z_stat.php%3Fid%3D1253969348' type='text/javascript'%3E%3C/script%3E""));
        </script>
    </div>
    <script type=""text/javascript"">
        var cnzz_protocol = ((""https:"" == document.location.protocol) ? "" https://"" : "" http://"");       document.write(unescape(""%3Cspan id='cnzz_stat_icon_1253969348'%3E%3C/span%3E%3Cscript src='"" + cnzz_protocol + ""s4.cnzz.com/z_stat.php%3Fid%3D1253969348%26show%3Dpic' type='text/javascript'%3E%3C/script%3E""));
    </script>
</div>


");

            return sbRet.ToString();
        }

        public static string GetFloorHtml()
        {
            System.Text.StringBuilder sbStr = new StringBuilder();
            sbStr.Append(@"<style>
                .footer-wrap {
                    width: 100%;
                    height: 145px;
                    padding-top: 35px;
                    color: #4f4f4f;
                    font-family: 微软雅黑;
                    font-size: 12px;
                    margin: 60px auto 0 auto;
                    text-align: center;
                    border-top: 3px solid #3398dc;
                    clear:both;
                }

                .helper-list {
                    width: 355px;
                    height: 26px;
                    padding-top: 14px;
                    margin: 0 auto;
                }

                    .helper-list ul li {
                        float: left;
                        padding: 0 10px;
                    }

                        .helper-list ul li a {
                            color: #4f4f4f;
                            font-size: 12px;
                        }

                .border-line-left {
                    border-left: 1px solid #4f4f4f;
                }

                .show-copyright {
                    clear: both;
                    line-height: 40px;
                }
            </style>");

            sbStr.Append(@"<div class=""footer-wrap"">
            <div class=""helper-list"">
                <ul>
                    <li><a href=""/wp_AboutUs.htm"">关于我们</a></li>
                    <li class=""border-line-left""><a href=""/wp_ContactUs.htm"">联系我们</a></li>
                    <li class=""border-line-left""><a href=""/wp_UsingHelp.htm"">使用帮助</a></li>
                    <li class=""border-line-left""><a href=""/wp_CopyrightNotice.htm"">版权声明</a></li>
                    <li class=""border-line-left""><a href=""/wp_TermsOfService.htm"">服务条款</a></li>
                </ul>
            </div>
            <div class=""show-copyright"">
                Copyright 2014 www.dijieke.com All Rights Reserved 地接客版权所有声明 渝ICP备14009985号-1
                <script type=""text/javascript"">
                    var cnzz_protocol = ((""https:"" == document.location.protocol) ? "" https://"" : "" http://""); document.write(unescape(""%3Cspan id='cnzz_stat_icon_1253969348'%3E%3C/span%3E%3Cscript src='"" + cnzz_protocol + ""s4.cnzz.com/z_stat.php%3Fid%3D1253969348' type='text/javascript'%3E%3C/script%3E""));
                </script>
                <script type=""text/javascript"">
                    var cnzz_protocol = ((""https:"" == document.location.protocol) ? "" https://"" : "" http://""); document.write(unescape(""%3Cspan id='cnzz_stat_icon_1253969348'%3E%3C/span%3E%3Cscript src='"" + cnzz_protocol + ""s4.cnzz.com/z_stat.php%3Fid%3D1253969348%26show%3Dpic' type='text/javascript'%3E%3C/script%3E""));
                </script>
            </div>
        </div>");
            return sbStr.ToString();
        }

        public static string GetDjackMenuHtml()
        {
            string usrAccountStr = string.Empty;

            using (msBsc.AppLogic.DataAlc.CBizCustomerBaseInfo objCBizCustomerBaseInfo = new AppLogic.DataAlc.CBizCustomerBaseInfo())
            {
                System.Data.DataSet ds = objCBizCustomerBaseInfo.SelectById(msBsc.SvRef.UserInfo.Operator);

                if (ds.Tables[0].Rows[0]["CUSTOMER_ALIPAY_ACCOUNT"] == System.DBNull.Value
                    || string.IsNullOrEmpty(ds.Tables[0].Rows[0]["CUSTOMER_ALIPAY_ACCOUNT"].ToString()))
                {
                    usrAccountStr = @"<li ><a class="""" href=""/ws_BindBalanceInfo.htm"">支付宝绑定</a></li>";
                }
                else if (ds.Tables[0].Rows[0]["CUSTOMER_IS_CREFY"] == System.DBNull.Value
                    || ds.Tables[0].Rows[0]["CUSTOMER_CREFY_STATUS"] == System.DBNull.Value
                    || System.Convert.ToInt32(ds.Tables[0].Rows[0]["CUSTOMER_CREFY_STATUS"]) != (int)msBsc.AppLogic.DataAlc.CrefEnum.PassCref)
                {
                    usrAccountStr = @"<li ><a class="""" href=""/ws_CrecityfyAlipayAccount.htm"">支付宝认证</a></li>";
                }
                else if (System.Convert.ToInt32(ds.Tables[0].Rows[0]["CUSTOMER_CREFY_STATUS"]) == (int)msBsc.AppLogic.DataAlc.CrefEnum.PassCref)
                {
                    //usrAccountStr = @"<li ><a class="""" href=""/ws_ClearBalanceInfo.htm"">支付宝解绑</a></li>";
                }
            }


            return @"<ul class=""sidebar-menu"">
                    <li class=""sub-menu active"">
                        <a href=""javascript:;"" class="""">个人中心</a>
                        <ul class=""sub"">
                            <li id=""djackInfo""><a class="""" href=""/ws_DjackInfo.htm"">个人资料</a></li>
                            <li id=""selfList""><a class="""" href=""/ws_SelfForum.htm"">我的推荐</a></li>
                        <li ><a class="""" href=""/ws_OrderList.htm"">卖出产品</a></li>" + usrAccountStr + @"
                            <li ><a class="""" href=""/ws_AccountsCentre.htm"">账户中心</a></li>
                            <li ><a class="""" href=""/ws_Message.htm"">我的消息</a></li>
                        </ul>
                    </li>
                    <li class=""sub-menu active"">
                        <a href=""javascript:;"" class="""">车辆管理</a>
                        <ul class=""sub"">
                            <li id=""djackCarList""><a class="""" href=""/ws_DjackVehicleList.htm"">车辆列表</a></li>
                            <li id=""djackAddCar""><a class="""" href=""/ws_AddVehicle.htm"">添加车辆</a></li>
                        </ul>
                    </li>
                    <li class=""sub-menu active"">
                        <a href=""javascript:;"" class="""">网站管理</a>
                        <ul class=""sub"">
                            <li id=""selfList""><a class="""" href=""/ws_DjackSuggestion.htm"">网站建议</a></li>
                        </ul>
                    </li>";

            //            string menuStr = @"<li ><a class="""" href=""/ws_OrderList.htm"">卖出产品</a></li>
            //                            <li ><a class="""" href=""/wb_OrderList.htm"">买入产品</a></li>" + usrAccountStr + @"
            //                            <li ><a class="""" href=""/ws_AccountsCentre.htm"">账户中心</a></li>
            //                            <li ><a class="""" href=""/ws_Message.htm"">我的消息</a></li>";
        }

        public static string GetAgentDjackMenuHtml()
        {
            return @"<ul class=""sidebar-menu"">
                    <li class=""sub-menu active"">
                        <a href=""javascript:;"" class="""">个人中心</a>
                        <ul class=""sub"">
                            <li id=""djackInfo""><a class="""" href=""/ws_AgentDjackInfo.htm"">个人资料</a></li>
                        </ul>
                    </li>
                    <li class=""sub-menu active"">
                        <a href=""javascript:;"" class="""">车辆管理</a>
                        <ul class=""sub"">
                            <li id=""djackCarList""><a class="""" href=""/ws_AreaDjackVehicleList.htm"">车辆列表</a></li>
                        </ul>
                    </li>
                    <li class=""sub-menu active"">
                        <a href=""javascript:;"" class="""">订单管理</a>
                        <ul class=""sub"">
                            <li id=""djackOrderList""><a class="""" href=""/ws_AgentDjackOrderList.htm"">订单查询</a></li>
                        </ul>
                    </li>
                   </ul>";
        }

        public static string GetTouristMenuHtml()
        {
            string usrAccountStr = string.Empty;

            using (msBsc.AppLogic.DataAlc.CBizCustomerBaseInfo objCBizCustomerBaseInfo = new AppLogic.DataAlc.CBizCustomerBaseInfo())
            {
                System.Data.DataSet ds = objCBizCustomerBaseInfo.SelectById(msBsc.SvRef.UserInfo.Operator);

                if (ds.Tables[0].Rows[0]["CUSTOMER_ALIPAY_ACCOUNT"] == System.DBNull.Value
                    || string.IsNullOrEmpty(ds.Tables[0].Rows[0]["CUSTOMER_ALIPAY_ACCOUNT"].ToString()))
                {
                    usrAccountStr = @"<li ><a class="""" href=""/wb_BindBalanceInfo.htm"">支付宝绑定</a></li>";
                }
                else
                {
                    //usrAccountStr = @"<li ><a class="""" href=""/wb_ClearBalanceInfo.htm"">支付宝解绑</a></li>";
                }
            }

            return @"<ul class=""sidebar-menu"">
                    <li class=""sub-menu active"">
                        <a href=""javascript:;"" class="""">个人中心</a>
                        <ul class=""sub"">
                            <li id=""touristInfo""><a class="""" href=""/wb_TouristInfo.htm"">个人资料</a></li>
                            <li ><a class="""" href=""/wb_OrderList.htm"">我的订单</a></li>
                            <li ><a class="""" href=""/wb_Message.htm"">我的消息</a></li>
                            <li ><a class="""" href=""/wb_ApplyDjack.htm"">申请为地接客</a></li>
                        </ul>
                    </li>
                    <li class=""sub-menu active"">
                        <a href=""javascript:;"" class="""">账户中心</a>
                        <ul class=""sub"">
                            <li ><a class="""" href=""/wb_AccountsCentre.htm"">我的账户</a></li>" + usrAccountStr + @"
                        </ul>
                    </li></ul>";
        }

        //wap底部菜单
        public static string GetWapMenuHtml()
        {
            StringBuilder htm = new StringBuilder();
            htm.Append(@"<div class=""fotter"">
            <div class=""fotter_div2"">
                

           ");
            if (msBsc.SvRef.UserInfo.Online)
            {
                if (msBsc.SvRef.UserInfo.OperType == "1")
                {
                    htm.Append(@"
                <a href=""/m/mb_UserInfo.htm"">我的</a>
<a onclick=""$.setLoginOut();"">退出 </a>");
                }
                else if (msBsc.SvRef.UserInfo.OperType == "2")
                {
                    htm.Append(@"
                <a id=""regist"" href=""/m/ms_UserInfo.htm"">我的</a>
<a onclick=""$.setLoginOut();"" style=""cursor:pointer;"">退出 </a>");
                }
            }
            else
            {
                htm.Append(@" <a id=""login"" href=""/m/mp_UserLogin.htm"">登录</a>
                <a id=""regist"" href=""/m/mp_UserRegister.htm"">注册</a>");
            }
            htm.Append(@" <a href=""/m/mp_AboutUs.htm"">关于我们</a>
                <a href=""/m/mp_TravelIndex.htm"">资讯</a>
                <a href=""/m/mp_Index.htm"">首页</a></div>
            
            <div class=""fotter_div1"">
                <p>Copyright 2014 www.dijieke.com All Rights Reserved 地接客版权所有声明</p>
            </div>
            
            <div class=""fotter_div1"">
                <p>渝ICP备14009985号-1<script type=""text/javascript"">
                                       var cnzz_protocol = ((""https:"" == document.location.protocol) ? "" https://"" : "" http://""); document.write(unescape(""%3Cspan id='cnzz_stat_icon_1253969348'%3E%3C/span%3E%3Cscript src='"" + cnzz_protocol + ""s4.cnzz.com/z_stat.php%3Fid%3D1253969348' type='text/javascript'%3E%3C/script%3E""));
        </script></p> <script type=""text/javascript"">
                                       var cnzz_protocol = ((""https:"" == document.location.protocol) ? "" https://"" : "" http://"");       document.write(unescape(""%3Cspan id='cnzz_stat_icon_1253969348'%3E%3C/span%3E%3Cscript src='"" + cnzz_protocol + ""s4.cnzz.com/z_stat.php%3Fid%3D1253969348%26show%3Dpic' type='text/javascript'%3E%3C/script%3E""));
    </script>
            </div>
        </div>");
            return htm.ToString();
        }


        public static string GetWapHeaderMenuHtml(bool menu)
        {
            StringBuilder htm = new StringBuilder();
            htm.Append(@"<div class=""header"">
            <ul style="""">
                <li class=""header_cell_1""><a onclick=""history.go(-1);"" href=""javascript:void(0);""></a></li>
                <li class=""header_cell_2""><span id=""h_title""></span></li>");
            if (menu == false)
            {
                htm.Append(@"</ul></div>");
            }
            else
            {
                htm.Append(@" <li class=""header_cell_1""><a onclick=""showHeaderMenu()"" class=""header_menu_btn""><em id=""h_ms_count"" class=""ms_count"">0</em></a></li>
            </ul>
            <div class=""header_menu"" id=""head_Menu"" >
                <ul>
                    <li><a href=""/m/mp_Index.htm"">首页</a></li>");

                if (msBsc.SvRef.UserInfo.Online)
                {
                    htm.Append(@"<li> <a href=""/mb_ChatMessageList.htm"">用户消息<em id=""ms_count"">(0)</em></a></li>
<li> <a href=""/mb_SystemMessList.htm"">系统消息<em id=""sys_count"">(0)</em></a></li>
");
                    //<li> <a href=""/mb_SystemMessList.htm"">系统消息<em id=""sys_count"">(0)</em></a></li>
                    if (msBsc.SvRef.UserInfo.OperType == "1")
                    {
                        htm.Append(@"
                <li><a href=""/m/mb_UserInfo.htm"">我的</a></li>
<li><a onclick=""$.setLoginOut();"">退出 </a></li>");
                    }
                    else if (msBsc.SvRef.UserInfo.OperType == "2")
                    {
                        htm.Append(@"
                <li><a id=""regist"" href=""/m/ms_UserInfo.htm"">我的</a></li>
<li><a onclick=""$.setLoginOut();"" style=""cursor:pointer;"">退出 </a></li>");
                    }
                }
                else
                {
                    htm.Append(@"<li> <a href=""/mb_ChatMessageList.htm"">用户消息<em id=""ms_count"">(0)</em></a></li>
<li> <a href=""/mb_SystemMessList.htm"">系统消息<em id=""sys_count"">(0)</em></a></li>
<li> <a href=""/m/mp_UserLogin.htm"">登录</a></li>
                <li><a href=""/m/mp_UserRegister.htm"">注册</a></li>");
                }
                htm.Append(@"</ul>
            </div>

            <script type=""text/javascript"">
                function showHeaderMenu() {
                    $(""#head_Menu"").toggle(""fast"");
                }
            </script>
        </div>");
            }
            return htm.ToString();
        }

        public static string GetNewIndexTopLoginStatus()
        {
            string redirect = msBsc.SvRef.UserInfo.OperType == "2" ? "ws_DjackInfo.htm" : "wb_TouristInfo.htm";
            string inDjack = msBsc.SvRef.UserInfo.OperType == "2" ? "" : @" <a href=""/wb_ApplyDjack.htm"" style=""color: #0670bf;""> [加入地接客] </a>";

            return msBsc.SvRef.UserInfo.Online ? @"<span class=""top-loginstatus"">欢迎 <a href=" + redirect + @"class=""cust-nick"" style=""color: #3398dc"">" + msBsc.SvRef.UserInfo.OperatorName + @"</a></span>" + inDjack + @" <a href=" + redirect + @" style=""color: #0670bf;""> [个人中心] </a> <span class=""logout"" style=""color: #0670bf; cursor: pointer;"" onclick=""$.setLoginOut();"">[退出]</span>" : @"<span class=""top-loginstatus"">欢迎加入</span>";
        }

        public static string GetWTouristMenu()
        {

            return @"<ul class=""tourist-info-menu"">
                        <li class=""menu-main"">个人中心</li>
                        <li>
                            <ul class=""menu-items"">
                                <li onclick=""javascript:{window.location.href='/wb_TouristInfo.htm'}"">个人资料</li>
                                <li onclick=""javascript:{window.location.href='/wb_OrderList.htm'}"">我的订单</li>
                            </ul>
                        </li>
                    </ul>";

            string readyStr = @"<li class=""menu-main"">账户中心</li>
                        <li>
                            <ul class=""menu-items"">
                                <li onclick=""javascript:{window.location.href='/wb_BindBalanceInfo.htm'}"">账户绑定</li>
                                <li onclick=""javascript:{window.location.href='/wb_AccountsCentre.htm'}"">我的账户</li>
                            </ul>
                        </li>";
        }
    }
}